package cn.newhopedairy.member.infrastructure.db.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 收货地址表
 *
 * @author Neo.Li
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("shipping_address")
@ApiModel(value="ShippingAddressPo对象", description="收货地址表")
public class ShippingAddressPo extends SuperPo {


    @ApiModelProperty(value = "会员id")
    @TableField("member_id")
    private Long memberId;

    @TableField("name")
    private String name;

    @ApiModelProperty(value = "收货人")
    @TableField("receiver")
    private String receiver;

    @ApiModelProperty(value = "收货人手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "邮编")
    @TableField("postal_code")
    private String postalCode;

    @ApiModelProperty(value = "是否默认")
    @TableField("defaulted")
    private Boolean defaulted;

    @ApiModelProperty(value = "国家编码")
    @TableField("country_code")
    private String countryCode;

    @ApiModelProperty(value = "省份编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "城市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "区编码")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "地址标签")
    @TableField("label")
    private String label;

    @ApiModelProperty(value = "经度坐标")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度坐标")
    @TableField("latitude")
    private BigDecimal latitude;


}
